<?php

namespace app\api\controller\admin;

use app\common\controller\Api;
use app\api\service\admin\SettingRegionService;

class SettingRegion extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = [];
    

    

    /**
     * 地区列表
     */
    public function index()
    {
        $data = $this->request->post();
        $res = SettingRegionService::index($data);
        return json($res);
    }

    /**
     * 添加地区
     */
    public function add()
    {
        $data = $this->request->post();
        $res = SettingRegionService::add($data);
        return json($res);
    }

    /**
     * 修改地区
     */
    public function edit()
    {
        $data = $this->request->post();
        $res = SettingRegionService::edit($data);
        return json($res);
    }

    /**
     * 删除地区
     */
    public function del()
    {
        $data = $this->request->post();
        $res = SettingRegionService::del($data);
        return json($res);
    }

    /**
     * 查询地区
     */
    public function select()
    {
        $data = $this->request->post();
        $res = SettingRegionService::select($data);
        return json($res);
    }
    
}